/*
 * Created on 12/09/2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author Eric
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class inventario {
	private Item itens[];
	private int maximo;
	
	public inventario(int maximo){			
		this.itens = new Item[maximo];
	}
	
	public void add_item(Item item) {
		for(int i = 0; i < maximo; i++) {
			if(this.itens[i] == null) {
				this.itens[i] = item;
				break;
			}
		}
	}
	
	public void mostra_itens() {
		for(int i = 0; i < maximo; i++) {
			if(this.itens[i] != null) {
				System.out.println(this.itens[i] + "\n");
			}
		}
	}

}
